package com.binfenhulian.chinaenergy.ces.manage.service.site;

import com.binfenhulian.chinaenergy.ces.core.exception.BaseException;
import com.binfenhulian.chinaenergy.ces.manage.bean.param.CrawlerParam;
import com.binfenhulian.chinaenergy.ces.manage.bean.param.SiteParam;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * Created by wanghjbuf on 2018/3/19.
 */
public interface SiteService {

    /**
     * 查询网站分页
     * @param paramMap
     * @return
     * @throws BaseException
     */
    public PageInfo listSiteByPage(Map<String,Object> paramMap) throws BaseException;

    /**
     * 查询网站下拉选
     * @return
     * @throws BaseException
     */
    public List<Object> listSel() throws BaseException;

    /**
     * 站点保存
     * @param siteParam
     * @return
     * @throws BaseException
     */
    public int save(SiteParam siteParam) throws BaseException;
}
